package com.lagou.rocket.service;


import com.lagou.rocket.dto.OrderDTO;
import com.lagou.rocket.pojo.Order;

public interface OrderService {

    /**
     * 下订单
     *
     * @return
     */
    String createOrder(OrderDTO orderDTO);

    /**
     * 保存订单
     *
     * @return
     */
    Boolean saveOrder(OrderDTO orderDTO);


    /**
     * 支付
     *
     * @return
     */
    String pay(Long orderId);

    /**
     * 支付
     *
     * @return
     */
    Order getOrderById(Long orderId);


    /**
     * 恢复库存
     *
     * @param orderId
     * @return
     */
    Boolean recovery(Long orderId);
}
